import request from '@/utils/request'

// 查询任务跟踪列表
export function listSendTaskTrack(query) {
  return request({
    url: '/oa/sendTaskTrack/list',
    method: 'get',
    params: query
  })
}

// 查询任务跟踪列表
export function listSendTaskTrackAll(query) {
    return request({
        url: '/oa/sendTaskTrack/listAll',
        method: 'get',
        params: query
    })
}

// 查询任务跟踪详细
export function getSendTaskTrack(id) {
  return request({
    url: '/oa/sendTaskTrack/' + id,
    method: 'get'
  })
}

// 新增任务跟踪
export function addSendTaskTrack(data) {
  return request({
    url: '/oa/sendTaskTrack',
    method: 'post',
    data: data
  })
}

// 修改任务跟踪
export function updateSendTaskTrack(data) {
  return request({
    url: '/oa/sendTaskTrack',
    method: 'put',
    data: data
  })
}

// 删除任务跟踪
export function delSendTaskTrack(id) {
  return request({
    url: '/oa/sendTaskTrack/' + id,
    method: 'delete'
  })
}
